<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
    body {
      background: url(img/bg.jpg);
    }
    .box {
      position: relative;
      width: 960px;
      height: 450px;
      margin: 50px auto;
    }
    .pic {
      width: 160px;
    }
    img {
      position: absolute;
      padding: 10px 10px 15px;
      background-color: #fff;
      border: 1px solid #ddd;
      z-index: 1;
      box-shadow: 2px 2px 3px rgba(50, 50, 50, .4);
      transition: all .5s ease-in;
    }
    img:hover {
      z-index: 2;
      box-shadow: 15px 15px 20px rgba(50, 50, 50, .4);
      transform: rotate(0deg) scale(1.2);
    }
    .pic1 {
      top: 50px;
      left: 300px;
      transform: rotate(-10deg);
    }
    .pic2 {
      top: 70px;
      left: 0;
      transform: rotate(30deg);
    }
    .pic3 {
      top: 170px;
      left: 720px;
      transform: rotate(50deg);
    }
    .pic4 {
      top: 230px;
      left: 60px;
      transform: rotate(-30deg);
    }
    .pic5 {
      top: 320px;
      left: 370px;
      transform: rotate(-10deg);
    }
    .pic6 {
      top: 372px;
      left: 510px;
      transform: rotate(-50deg);
    }
    .pic7 {
      top: 90px;
      left: 690px;
      transform: rotate(-70deg);
    }
    .pic8 {
      top: 360px;
      left: 790px;
      transform: rotate(50deg);
    }
  </style>
</head>
<body>
  <div class="box">
    <img src="img/pk1.png" class="pic pic1" />
    <img src="img/pk2.png" class="pic pic2" />
    <img src="img/pk1.png" class="pic pic3" />
    <img src="img/pk2.png" class="pic pic4" />
    <img src="img/pk1.png" class="pic pic5" />
    <img src="img/pk2.png" class="pic pic6" />
    <img src="img/pk1.png" class="pic pic7" />
    <img src="img/pk2.png" class="pic pic8" />
  </div>
</body>
</html>